package com.gelian.geliansdk;

/**
 * 个联resultCode与请求状态的对应关系类
 */
public class GlResultCode {
    //云端返回码类型

    /**
     * 请求超时
     */
    public static final int GL_CALLBACK_CODE_TIME_OUT = 901;

    /**
     * 请求成功
     */
    public static final int GL_CALLBACK_CODE_SUCCESS = 0;
    /**
     * IP重定向,请稍后再试
     */
    public static final int GL_CALLBACK_REDIRECT = 1;

    /**
     * imei和pin不匹配
     */
    public static final int GL_CALLBACK_CODE_NOMATCH_IMEI_PIN = 100;
    /**
     * product_id和pin不匹配
     */
    public static final int GL_CALLBACK_CODE_NOMATCH_PRODUCTID_PIN = 101;
    /**
     * 产品数量超过厂家购买数量
     */
    public static final int GL_CALLBACK_CODE_OVER_PRODUCT_NUM = 102;
    /**
     * 产品id不存在
     */
    public static final int GL_CALLBACK_CODE_PRODUCTID_INVAIL = 103;

    /**
     * 绑定关系不存在，非法访问
     */
    public static final int GL_CALLBACK_CODE_NO_BIND = 201;
    /**
     * 设备不存在
     */
    public static final int GL_CALLBACK_DEVICE_INVAIL = 202;
    /**
     * 用户名已存在
     */
    public static final int GL_CALLBACK_CODE_USER_EXIST = 301;
    /**
     * 验证码错误
     */
    public static final int GL_CALLBACK_CODE_VERIFYCODE_ERROR = 302;
    /**
     * 验证码过期
     */
    public static final int GL_CALLBACK_CODE_VERIFYCODE_OVERDUE = 303;
    /**
     * 用户名不存在
     */
    public static final int GL_CALLBACK_CODE_USER_NO_EXIST = 304;
    /**
     * 用户名密码不匹配
     */
    public static final int GL_CALLBACK_CODE_NO_MATCH_USER_AND_PASS = 305;

    //    /**
    //     * 用户没有绑定此设备
    //     */
    //    public static final int GL_CALLBACK_CODE_NOT_BIND = 306;
    /**
     * 管理员审核中
     */
    public static final int GL_CALLBACK_CODE_VERIFY = 307;
    /**
     * 管理员同意绑定
     */
    public static final int GL_CALLBACK_CODE_AGREE = 308;
    /**
     * 管理员不同意绑定
     */
    public static final int GL_CALLBACK_CODE_DISAGREE = 309;
    /**
     * 该次申请权限已经响应过了
     */
    public static final int GL_CALLBACK_CODE_ALREADY_RESPONSE = 310;
    /**
     * 不存在与此用户绑定的设备
     */
    public static final int GL_CALLBACK_CODE_NO_DEVICE_BIND_HERE = 311;
    /**
     * 权限拒绝
     */
    public static final int GL_CALLBACK_CODE_PERMISSION_DENIED = 312;
    /**
     * 无对应版本信息
     */
    public static final int GL_CALLBACK_CODE_NO_INFO = 313;
    /**
     * 二进制内容长度不符
     */
    public static final int GL_CALLBACK_CODE_LENTH_NOT_MATCH = 314;

    /**
     * 设备被普通用户绑定时管理员无法解绑
     */
    public static final int GL_CALLBACK_CODE_UNBIND_FAIL = 315;

    /**
     * 重复手机号
     */
    public static final int GL_CALLBACK_CODE_DUPLICATE_PHONE_NUMBER = 316;

    /**
     * 非法cid
     */
    public static final int GL_CALLBACK_CODE_INVALID_CID = 317;

    /**
     * 当天请求短信数量达到最大限制,请明天再试
     */
    public static final int GL_CALLBACK_CODE_SMS_OUT_OF_LIMIT2 = 318;
    public static final int GL_CALLBACK_CODE_SMS_OUT_OF_LIMIT = 319;


    /**
     * 密码格式不符合要求
     */
    public static final int GL_CALLBACK_CODE_INVALID_PASS = 329;
    /**
     * 手机号码非法
     */
    public static final int GL_CALLBACK_CODE_INVALID_PHONE_NUMBER = 330;

    /**
     * 透传成功,且目标设备在线
     */
    public static final int GL_CALLBACK_CODE_THROUGH_SUCCESS_AND_TARGET_ONLINE = 401;

    /**
     * 目标设备在线
     */
    public static final int GL_DEVICE_STATUS_TARGET_ONLINE = 401;

    /**
     * 透传成功,但目标设备不在线
     */
    public static final int GL_DEVICE_STATUS_TARGET_OFFLINE = 402;

    /**
     * 透传失败
     */
    public static final int GL_CALLBACK_CODE_THROUGH_FAIL = 403;

    /**
     * 数据字段缺失
     */
    public static final int GL_CALLBACK_CODE_MISSING_DATA = 998;

    /**
     * 未知错误
     */
    public static final int GL_CALLBACK_CODE_UNKNOWN_ERROR = 999;

    /**
     * 短信请求过于频繁,请一分钟后再试
     */
    public static final int GL_CALLBACK_CODE_SMS_TOO_FAST = 1310;

    /**
     * 连接已断开，请重新启动
     */
    public static final int GL_CALLBACK_CODE_CONN_CLOSE = 1130;
    /**
     * 初始化失败
     */
    public static final int INIT_FAIL = 1131;
    /**
     * 未登录
     */
    public static final int GL_CALLBACK_CODE_UN_LOGIN = 1132;
    /**
     * 请求过于频繁
     */
    public static final int GL_CALLBACK_CODE_TOO_FAST = 1133;
    /**
     * 该设备已绑定
     */
    public static final int GL_CALLBACK_CODE_ALREADY_BIND = 1134;
    /**
     * 设备无响应，请重试
     */
    public static final int GL_CALLBACK_CODE_DEVICE_NO_RESPONSE = 1135;
    /**
     * 透传内容超过3072字节
     */
    public static final int GL_CALLBACK_CODE_PAYLOAD_TOO_LONG = 1136;

}
